package cn.edu.thu.laud.jdbc.hivecassandra;

import java.sql.Connection;
import java.sql.SQLException;

import org.apache.hadoop.hive.jdbc.HiveDataSource;
/**
 * a customed HiveDataSource which hide the getConnection() function. 
 * @author hxd
 *
 */
public class HideHiveDataSource extends HiveDataSource {

	@Override
	public Connection getConnection() throws SQLException {
		throw new SQLException("this method is hide.");
	}

	@Override
	public Connection getConnection(String username, String password)
			throws SQLException {
		throw new SQLException("this method is hide.");
	}

	
}
